package com.learn.cloud.validator.code;

import com.learn.cloud.validator.bean.ValidationResult;

import java.lang.annotation.Annotation;

/**
 *
 *
 * @description: 校验规则
 * @author: cong zhi
 * @createDate: 2022/2/6 0:28
 * @updateUser: cong zhi
 * @updateDate: 2022/2/6 0:28
 * @updateRemark: 修改内容
 * @version: v1.0
 */
public interface ValidationRuleHandler<T extends Annotation> {

    /**
     * 校验方法
     *
     * @param annotation
     * @param object
     * @return
     */
    ValidationResult validation(T annotation, Object object);
}
